package org.shijiagen.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
@TableName("address")
public class Address {
    @TableId(type = IdType.AUTO)
    private Integer id;
    @NotBlank(message = "联系人不能为空")
    private String linkman;
    @NotBlank(message = "电话不能为空")
    private String phone;
    @NotBlank(message = "地址不能为空")
    private String address;
    @NotNull(message = "用户id不能为空")
    private Integer userId;
}
